//
//  SCHeaderView.m
//  Mutal
//
//  Created by TonyStart on 16/10/25.
//  Copyright © 2016年 com.wx. All rights reserved.
//

#import "SCHeaderView.h"

@interface SCHeaderView()

@end

@implementation SCHeaderView

-(instancetype)init{
    if (self = [super initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 64)]) {
        [self setupUI];
    }
    return self;
}

-(void)setupUI{
    self.backgroundColor =[UIColor colorWithRed:81/255.0 green:200/255.0 blue:195/255.0 alpha:1];
    CGFloat height = 30;
    _leftBtn = [[UIButton alloc] initWithFrame:CGRectMake(10, 64-height-10, 100, height)];
    
    _centerLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, height)];
    _centerLabel.center = CGPointMake(self.center.x, 64-height-10);
    _centerLabel.textColor = [UIColor whiteColor];
    _rightBtn = [[UIButton alloc] initWithFrame:CGRectMake(self.frame.size.width - 100 -10, 64-height-10, 100, height)];
    
    [self addSubview:_leftBtn];
    [self addSubview:_centerLabel];
    [self addSubview:_rightBtn];
}



@end
